package cn.gson.springboot.model.pjos;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;

public class VoOrderDetail {
    private int odetailsId;//订单详情id
    private String prName;
    private String speColor;
    private BigDecimal prsPrice;
    private BigDecimal detDiscount;
    private Integer odNumber;
    private String prUnit;
    private BigDecimal detTotal;
    private OrderInfo orderInfoByOrderId;//订单信息

    @Id
    @Column(name = "odetails_id")
    public int getOdetailsId() {
        return odetailsId;
    }

    public void setOdetailsId(int odetailsId) {
        this.odetailsId = odetailsId;
    }
    @Basic
    @Column(name = "od_name")
    public String getPrName() {
        return prName;
    }

    public void setPrName(String prName) {
        this.prName = prName;
    }

    @Basic
    @Column(name = "od_color")
    public String getSpeColor() {
        return speColor;
    }

    public void setSpeColor(String speColor) {
        this.speColor = speColor;
    }

    @Basic
    @Column(name = "od_price")
    public BigDecimal getPrsPrice() {
        return prsPrice;
    }

    public void setPrsPrice(BigDecimal prsPrice) {
        this.prsPrice = prsPrice;
    }

    @Basic
    @Column(name = "od_discount")
    public BigDecimal getDetDiscount() {
        return detDiscount;
    }

    public void setDetDiscount(BigDecimal detDiscount) {
        this.detDiscount = detDiscount;
    }

    @Basic
    @Column(name = "od_number")
    public Integer getOdNumber() {
        return odNumber;
    }

    public void setOdNumber(Integer odNumber) {
        this.odNumber = odNumber;
    }

    @Basic
    @Column(name = "od_unit")
    public String getPrUnit() {
        return prUnit;
    }

    public void setPrUnit(String prUnit) {
        this.prUnit = prUnit;
    }

    @Basic
    @Column(name = "od_amount")
    public BigDecimal getDetTotal() {
        return detTotal;
    }

    public void setDetTotal(BigDecimal detTotal) {
        this.detTotal = detTotal;
    }

    public OrderInfo getOrderInfoByOrderId() {
        return orderInfoByOrderId;
    }

    public void setOrderInfoByOrderId(OrderInfo orderInfoByOrderId) {
        this.orderInfoByOrderId = orderInfoByOrderId;
    }

    @Override
    public String toString() {
        return "VoOrderDetail{" +
                "odetailsId=" + odetailsId +
                ", prName='" + prName + '\'' +
                ", speColor='" + speColor + '\'' +
                ", prsPrice=" + prsPrice +
                ", detDiscount=" + detDiscount +
                ", odNumber=" + odNumber +
                ", prUnit='" + prUnit + '\'' +
                ", detTotal=" + detTotal +
                ", orderInfoByOrderId=" + orderInfoByOrderId +
                '}';
    }
}
